package com.fis.hthk.dblinkapi.util;

import com.agileitp.forte.framework.TextData;

import com.ssaglobal.scm.wms.service.baseobjects.EXEDataObject;
import com.ssaglobal.scm.wms.service.exeprocessmanager.TransactionServiceSORemote;
public class WmsWebuibulkCUDImpl {
	
	protected static final String internalCaller = "internalCall";
	
	
	
	public static EXEDataObject[] insert(String provider, String insertSql, String db_connection, String userid,TextData []bulkSql) throws Exception
	{				
		try
		{
			TransactionServiceSORemote remote = EJBRemote.getRemote(provider);			
			EXEDataObject[] obj = remote.bulkCUD(new TextData(userid),db_connection, bulkSql, false, null,internalCaller,null);
			return obj;
		}
		catch (Exception ex)
		{
			ex.printStackTrace();
			throw new Exception(ex.getMessage(), ex);
		}

	}
}
